#ifndef _MQTT_PORT_H_
#define _MQTT_PORT_H_

//有关MQTT协议的移植
#include "timer.h"

typedef struct Network
{
    int (*mqttread)(struct Network*, unsigned char* read_buffer, int, int);
	int (*mqttwrite)(struct Network*, unsigned char* send_buffer, int, int);
}Network;

extern void TimerInit(Timer*);
extern char TimerIsExpired(Timer*);
extern void TimerCountdownMS(Timer*, unsigned int);
extern void TimerCountdown(Timer*, unsigned int);
extern int TimerLeftMS(Timer*);

#endif
